export const BusinessLanguage = {
  Common: {
    Add: {
      Button:
        {
          CN: '新增',
          EN: 'Add',
          RU: 'Add'
        }
    },
    Edit: {
      Button:
        {
          CN: '编辑',
          EN: 'Edit',
          RU: 'Edit'
        }
    },
    Delete: {
      Button:
        {
          CN: '删除',
          EN: 'Delete',
          RU: 'Delete'
        },
      Confirm: {
        CN: '确定要将数据删除吗?',
        EN: 'are you sure you want to delete the data?',
        RU: 'are you sure you want to delete the data?'
      }
    },
    Refresh: {
      Button:
        {
          CN: '刷新',
          EN: 'Refresh',
          RU: 'Refresh'
        }
    }
  },
  Dialog: {
    Sure: {
      CN: '确 定',
      EN: 'sure',
      RU: 'sure'
    },
    Cancel: {
      CN: '取 消',
      EN: 'cancel',
      RU: 'cancel'
    },
    Tooltip: {
      CN: '提示',
      EN: 'tooltip',
      RU: 'tooltip'
    },
    Message: {
      Save: {
        CN: '保存成功',
        EN: 'success',
        RU: 'success'
      },
      Edit: {
        CN: '编辑成功',
        EN: 'success',
        RU: 'success'
      },
      Delete: {
        CN: '删除成功',
        EN: 'success',
        RU: 'success'
      }
    }
  },
  Grid: {
    Index: {
      CN: '序号',
      EN: 'index',
      RU: 'index'
    },
    SerialNumber: {
      CN: '排序',
      EN: 'serial number',
      RU: 'serial number'
    },
    Remark: {
      CN: '备注',
      EN: 'remark',
      RU: 'remark'
    },
    IsDel: {
      CN: '是否删除',
      EN: 'is deleted',
      RU: 'is deleted'
    },
    Creator: {
      CN: '创建人',
      EN: 'creator',
      RU: 'creator'
    },
    CreateTime: {
      CN: '创建时间',
      EN: 'create time',
      RU: 'create time'
    },
    Modifier: {
      CN: '修改人',
      EN: 'modifier',
      RU: 'modifier'
    },
    modifyTime: {
      CN: '修改时间',
      EN: 'modify time',
      RU: 'modify time'
    },
    LanguageName: {
      CN: '语言名称',
      EN: 'language name',
      RU: 'language name'
    },
    Action: {
      CN: '操作',
      EN: 'action',
      RU: 'action'
    }
  },
  Form: {
    Placeholder: {
      SerialNumber: {
        CN: '请输入序号',
        EN: 'please input serial number',
        RU: 'please input serial number'
      },
      Remark: {
        CN: '请输入备注',
        EN: 'please input note',
        RU: 'please input note'
      }
    }
  },
  Org: {
    Grid: {
      OrgName: {
        CN: '机构名称',
        EN: 'org name',
        RU: 'org name'
      },
      LeaderName: {
        CN: '主管人姓名',
        EN: 'leader name',
        RU: 'leader name'
      }
    },
    DialogTitle: {
      Add: {
        CN: '新增机构信息',
        EN: 'add org info',
        RU: 'add org info'
      },
      Edit: {
        CN: '编辑机构信息',
        EN: 'edit org info',
        RU: 'edit org info'
      }
    },
    Form: {
      Placeholder: {
        OrgName: {
          CN: '请输入机构名称',
          EN: 'please input org name',
          RU: 'please input org name'
        },
        LeaderName: {
          CN: '请选择主管人',
          EN: 'please select leader name',
          RU: 'please select leader name'
        }
      }
    }
  },
  GetMenuName: function(type) {
    const language = localStorage.getItem('language')
    switch (language) {
      case 'zh-CN':
        return type.CN
      case 'en-US':
        return type.EN
      case 'ru-RU':
        return type.RU
      default:
        break
    }
  }
}
